package com.iphanta.community.remote.feign;

import com.iphanta.community.remote.common.RemoteResult;
import com.iphanta.community.remote.traffic.GetPlayerInfoRequest;
import com.iphanta.community.remote.traffic.GetPlayerInfoResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 3/18/22 3:26 PM
 */
//@Component
@FeignClient(value = "user-center", url = "${userCenter.server}")
public interface UserCenterFeign {

    @PostMapping(value = "getPlayerInfo", produces = "application/json; charset=UTF-8")
    RemoteResult<GetPlayerInfoResponse> getPlayerInfo(@RequestBody GetPlayerInfoRequest request);

}
